package gailv.sherwood;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        int[] arr = new int[10];
        // 数组初始化
        int n = arr.length;
        for (int i = 0; i < n; i++) {
            arr[i] = i;
        }
        // 打印原始数组
        System.out.println("随机化前数组: " + Arrays.toString(arr));
        // 进行随机化
        Sherwood sherwood = new Sherwood();
        sherwood.shuffle(arr, n); // 随机化
        // 打印随机化后数组
        System.out.println("随机化后数组: " + Arrays.toString(arr));
    }
}
